package cc.mrbird.febs.activity.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;

import cc.mrbird.febs.common.converter.TimeConverter;
import lombok.Data;

/**
 * 活动信息表 Entity
 *
 * @author Lord
 * @date 2020-06-06 16:11:26
 */
@Data
@TableName("t_activity")
@Excel("活动信息表")
public class Activity implements Serializable {

    private static final long serialVersionUID = -7962830743952967312L;

    /**
     * 活动 ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 银行ID
     */
    @TableField("bank_id")
    private Integer bankId;

    /**
     * 活动名称
     */
    @TableField("name")
    @ExcelField(value = "活动名称")
    private String name;

    /**
     * 活动备注
     */
    @TableField("remark")
    @ExcelField(value = "活动备注")
    private String remark;

    /**
     * 活动开始时间
     */
    @TableField("start_time")
    @ExcelField(value = "活动开始时间", writeConverter = TimeConverter.class)
    private Date startTime;

    /**
     * 活动结束时间
     */
    @TableField("end_time")
    @ExcelField(value = "活动结束时间", writeConverter = TimeConverter.class)
    private Date endTime;

    /**
     * 活动状态：0->未启用；1->已启用
     */
    @TableField("status")
    @ExcelField(value = "状态", writeConverterExp = "0=未启用,1=已启用")
    private Integer status;

    /**
     * 删除状态：0->未删除；1->已删除
     */
    @TableField("delete_status")
    private Integer deleteStatus;

    /**
     * 活动规则
     */
    @TableField("rule_desc")
    @ExcelField(value = "活动规则")
    private String ruleDesc;

    /**
     * 分享titel
     */
    @TableField("share_title")
    @ExcelField(value = "分享titel")
    private String shareTitle;

    /**
     * 分享内容
     */
    @TableField("share_content")
    @ExcelField(value = "分享内容")
    private String shareContent;

    /**
     * 分享图片地址
     */
    @TableField("share_img")
    @ExcelField(value = "分享图片地址")
    private String shareImg;

    /**
     * 卡BIN限制状态：0->不支持；1->支持
     */
    @TableField("card_BIN_status")
    private Integer cardBinStatus;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    private Date createTime;

}
